package com.verlet.springbootdemo.simple.rabbitmq.delegate;

import lombok.extern.slf4j.Slf4j;

/**
 * 消息委托
 *
 * @author verlet
 * @date 2020/1/29
 */
@Slf4j
public class MessageDelegate {

    /**
     * 默认方法
     */
    public void handleMessage(byte[] messageBody) {
        log.info("====={}=====", new String(messageBody));
    }

    public void consumeMessage(String messageStr) {
        log.info("====={}=====", messageStr);
    }
}
